-- GENERATED SPELL FOR [Dunemaul Ogre] --


function spell0_5471(pUnit, Event) --@Battle Stance,Self--
pUnit:FullCastSpellOnTarget(7165,pUnit)
pUnit:RegisterEvent('Sorts_5471', 616, 1)
end

function spell1_5471(pUnit, Event) --@Heroic Strike,n/a--
pUnit:FullCastSpellOnTarget(25710,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_5471', 660, 1)
end

function Sorts_5471(pUnit, Event)
local choix_sorts_5471 = math.random(0, 1)
if choix_sorts_5471 == 0 then
pUnit:RegisterEvent('spell0_5471', 1, 1)
end
if choix_sorts_5471 == 1 then
pUnit:RegisterEvent('spell1_5471', 1, 1)
end
end

function mob5471_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_5471', math.random(1500, 3000), 1)
end

function mob5471_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob5471_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob5471_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(5471, 1, 'mob5471_Action')
RegisterUnitEvent(5471, 2, 'mob5471_Leave')
RegisterUnitEvent(5471, 3, 'mob5471_Kill')
RegisterUnitEvent(5471, 4, 'mob5471_Die')
